import urllib.request as ur
import random

url = 'http://www.whatismyip.com.tw'

iplist = ['50.93.200.237:2018', '159.203.172.125:8080', '159.65.45.64:8080', '35.233.214.154:80']
p
roxy_support = ur.ProxyHandler({'http': random.choice(iplist)})

opener = ur.build_opener(proxy_support)

ur.install_opener(opener)

response = ur.urlopen(url)

html = response.read().decode('utf-8')

print(html)
